/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-07-09
 * Time: 17:50
 */
public class Test {
    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();
        singleLinkedList.addLast(2);
        singleLinkedList.addLast(2);
        singleLinkedList.addLast(2);
        singleLinkedList.addLast(2);

        singleLinkedList.addIndex(4,2);

        singleLinkedList.display();

        /*singleLinkedList.remove(4);
        singleLinkedList.display();*/

        /*singleLinkedList.removeAllKey(2);
        singleLinkedList.display();*/

        singleLinkedList.clear();

        System.out.println();
    }
}
